import { getUserInfo } from './crypto'

// 判断用户权限
export const hasPermission = () => {
  const userInfo = getUserInfo()
  if (!userInfo) return false
  else if (userInfo.roleLevel === 1) return true
  else return false
}
